package com.spsa.utilidades;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class Parametros {
	private static Properties properties;

	static {
		properties = new Properties();
		InputStream input = null;

		try {
			input = new FileInputStream("D:\\integracion\\notificacionArchivos\\messages.properties");
			properties.load(input);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		catch (IOException e) {
			e.printStackTrace();
		}
	}

	public static String get(String key) {
		return properties.getProperty(key);
	}
}
